<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
        crossorigin="anonymous">
    <!-- jQuery -->
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
        crossorigin="anonymous"></script>
    <link rel="stylesheet" href="css/xuhao.css">
</head>

<body>
    <!-- 页头 -->
    <div class="header">
        <nav>

            <nav class="navbar navbar-default" role="navigation">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">后台管理系统</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse navbar-ex1-collapse">
                    <ul class="nav navbar-nav">
                        <li>
                            <a href="#">
                                <span class="glyphicon glyphicon-home" aria-hidden="true"></span> 后台首页</a>
                        </li>
                        <li>
                            <a href="#">
                                <span class=" glyphicon glyphicon-user" aria-hidden="true"></span> 用户管理</a>
                        </li>
                        <li>
                            <a href="#">
                                <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> 内容管理</a>
                        </li>
                    </ul>

                    <ul class="nav navbar-nav navbar-right">

                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">admin
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="#">前台首页</a>
                                </li>
                                <li>
                                    <a href="#">个人主页</a>
                                </li>
                                <li>
                                    <a href="#">个人设置</a>
                                </li>
                                <li>
                                    <a href="#">账户中心</a>
                                </li>
                                <li>
                                    <a href="#">我的收藏</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <span class="glyphicon glyphicon glyphicon-off" aria-hidden="true"></span> 退出 </span>
                            </a>
                        </li>
                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </nav>

        </nav>
    </div>


    <div class="container">

        <div class="row">
            <!-- 左 -->
            <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2">

                <ul class="list-group">
                    <a class="list-group-item " href="#">内容管理</a>
                    <a class="list-group-item" href="#">添加内容</a>
                </ul>

            </div>

            <!-- 右 -->
            <div class="col-xs-12 col-sm-10 col-md-10 col-lg-10">

                <div class="panel panel-default">
                    <!-- Default panel contents -->
                    <div class="panel-heading">
                        <h1>内容管理</h1>

                        <div role="tabpanel">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active">
                                    <a href="#home" aria-controls="home" role="tab" data-toggle="tab">内容管理</a>
                                </li>
                                <li role="presentation">
                                    <a href="#tab" aria-controls="tab" role="tab" data-toggle="tab">添加内容</a>
                                </li>
                            </ul>

                        </div>

                    </div>

                    <!-- Table -->
                    <table class="table">
                        <thead>
                            <tr>
                                <th>文章标题</th>
                                <th>作者</th>
                                <th>发布时间</th>
                                <th>操作</th>
                            </tr>

                            <tr>
                                <th>国内首个汽车资讯互动平台诞生</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>


                                        </ul>
                                    </div>
                                </th>
                            </tr>

                            <tr>
                                <th>爱奇艺10亿元资金成立创投联盟</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>


                                        </ul>
                                    </div>
                                </th>
                            </tr>
                            <tr>
                                <th>胸怀网络世界、强健开发中国、建立有序空间</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>


                                        </ul>
                                    </div>
                                </th>
                            </tr>

                            <tr>
                                <th>首个网络空间安全战略筑牢网络强国基石</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>
                                        </ul>
                                    </div>
                                </th>
                            </tr>

                            <tr>
                                <th>美播直播实现6人连麦移动社交再升级</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>
                                        </ul>
                                    </div>
                                </th>
                            </tr>

                            <tr>
                                <th>怎样才能成为优秀的前端开发工程师</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>
                                        </ul>
                                    </div>
                                </th>
                            </tr>

                            <tr>
                                <th>扎克伯格：真正决定人生高度的，是你做事态度</th>
                                <th>李晓乐</th>
                                <th>2017/1/20</th>
                                <th>
                                    <div class="dropdown">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            操作
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
                                            <li>
                                                <a href="#">编辑</a>
                                            </li>
                                            <li>
                                                <a href="#">删除</a>
                                            </li>
                                            <li>
                                                <a href="#">全局置顶</a>
                                            </li>
                                        </ul>
                                    </div>
                                </th>
                            </tr>



                        </thead>

                    </table>
                    
                    <br>
                    <br>
                    <div class="btn-group" role="group" id="xuhao">
                        <button type="button" class="btn btn-default">《</button>
                        <button type="button" class="btn btn-default">1</button>
                        <button type="button" class="btn btn-default">2</button>
                        <button type="button" class="btn btn-default">3</button>
                        <button type="button" class="btn btn-default">4</button>
                        <button type="button" class="btn btn-default">5</button>
                        <button type="button" class="btn btn-default">6</button>
                        <button type="button" class="btn btn-default">》</button>
                    </div>
                </div>

            </div>

        </div>

    </div>

</body>
<script>
    $(function () {
        /*
        $('.list-group a').mousemove(function(){
            $(this).addClass('active')
        }).mouseout(function(){
            $(this).removeClass('active')
        })*/
        $('.list-group a').on('click', function () {
            $(this).addClass('active');
            $(this).siblings().removeClass('active')
        })


        $('.navbar-nav li').on('click', function () {
            $(this).addClass('active');
            $(this).siblings().removeClass('active')
        })
    })
</script>

</html>